import request from '@/utils/request'

export function getAddApply (parameter) {
  return request({
    url: '/boss/icf/addApply',
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
export function getListPts (parameter) {
  return request({
    url: '/boss/pts/listPts',
    method: 'get',
    params: parameter
  })
}
export function getList (parameter) {
  return request({
    url: '/boss/project/icf/list',
    method: 'get',
    params: parameter
  })
}
export function getListByConfig (parameter) {
  return request({
    url: '/boss/project/icf/listByConfig',
    method: 'get',
    params: parameter
  })
}
export function addTemplate (parameter) {
  return request({
    url: '/boss/project/icf/addTemplate',
    method: 'post',
    data: parameter
  })
}
export function getDetail (parameter) {
  return request({
    url: '/boss/project/icf/get',
    method: 'get',
    params: parameter
  })
}
export function addDetail (parameter) {
  return request({
    url: '/boss/project/icf/addDetail',
    method: 'post',
    data: parameter
  })
}
export function updateDetail (parameter) {
  return request({
    url: '/boss/project/icf/updateDetail',
    method: 'post',
    data: parameter
  })
}
export function updateStatus (parameter) {
  return request({
    url: '/boss/project/icf/updateStatus',
    method: 'post',
    data: parameter
  })
}
export function deleteDetail (parameter) {
  return request({
    url: '/boss/project/icf/deleteDetail',
    method: 'post',
    data: parameter
  })
}
export function getListOrgByPro (parameter) {
  return request({
    url: '/boss/project/team/listSite',
    method: 'get',
    params: parameter
  })
}
export function getListPro (parameter) {
  return request({
    url: '/boss/project/manage/listPro',
    method: 'get',
    params: parameter
  })
}
export function getConsentList (parameter) {
  return request({
    url: '/boss/icf/list',
    method: 'get',
    params: parameter
  })
}
export function getConsentDetail (parameter) {
  return request({
    url: '/boss/icf/get',
    method: 'get',
    params: parameter
  })
}
export function deleteConsent (parameter) {
  return request({
    url: '/boss/icf/deleteApply',
    method: 'post',
    data: parameter
  })
}
export function reserveVideo (parameter) {
  return request({
    url: '/boss/icf/updateVideoTimeAndUser',
    method: 'post',
    data: parameter
  })
}
export function updateConfig (parameter) {
  return request({
    url: '/boss/project/icf/updateConfig',
    method: 'post',
    data: parameter
  })
}
export function icfCompleteList (parameter) {
  return request({
    url: '/boss/project/icf/completeList',
    method: 'get',
    params: parameter
  })
}
export function icfCopyIcfContent (parameter) {
  return request({
    url: '/boss/project/icf/copyIcfContent',
    method: 'post',
    data: parameter
  })
}
export function icfCopyIcfSign (parameter) {
  return request({
    url: '/boss/project/icf/copyIcfSign',
    method: 'post',
    data: parameter
  })
}
export function copyIcfPDFConfig (parameter) {
  return request({
    url: '/boss/project/icf/copyIcfPDFConfig',
    method: 'post',
    data: parameter
  })
}
export function againApply (parameter) {
  return request({
    url: '/boss/icf/againApply',
    method: 'post',
    data: parameter
  })
}
export function getResearchList (parameter) {
  return request({
    url: '/common/researchDetail/list',
    method: 'post',
    data: parameter
  })
}
export function getIcfList (parameter) {
  return request({
    url: '/boss/icf/getIcfList',
    method: 'post',
    data: parameter
  })
}
export function joinVideoCheck (parameter) {
  return request({
    url: '/boss/icf/joinVideoCheck',
    method: 'post',
    data: parameter
  })
}
export function applyPaper (parameter) {
  return request({
    url: '/boss/icf/applyPaper',
    method: 'post',
    data: parameter
  })
}
export function addApplyPaper (parameter) {
  return request({
    url: '/boss/icf/addApplyPaper',
    method: 'post',
    data: parameter
  })
}
export function batchAddApplyPaper (parameter) {
  return request({
    url: '/boss/icf/batchAddApplyPaper',
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
export function getApplyPaper (parameter) {
  return request({
    url: '/boss/icf/getApplyPaper',
    method: 'get',
    params: parameter
  })
}
export function exportPDF (parameter) {
  return request({
    url: '/common/downloadFile',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
export function exportZip (parameter) {
  return request({
    url: '/boss/icf/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
export function templateUrl (parameter) {
  return request({
    url: '/boss/project/icf/templateUrl',
    method: 'get',
    params: parameter
  })
}
export function icfTemplateDel (parameter) {
  return request({
    url: '/boss/project/icf/icfTemplateDel',
    method: 'post',
    data: parameter
  })
}
export function refuse (parameter) {
  return request({
    url: '/boss/icf/apply/refuse',
    method: 'post',
    data: parameter
  })
}
export function getSignUrl (parameter) {
  return request({
    url: '/boss/pad/pro/getSignUrl',
    method: 'post',
    data: parameter
  })
}
export function addPiOnLineState (parameter) {
  return request({
    url: '/boss/project/icf/addPiOnLineState',
    method: 'post',
    data: parameter
  })
}
export function cancelVideo (parameter) {
  return request({
    url: '/boss/icf/cancelVideo',
    method: 'post',
    data: parameter
  })
}
export function addVideo (parameter) {
  return request({
    url: '/boss/icf/addVideo',
    method: 'post',
    data: parameter
  })
}
export function invalid (parameter) {
  return request({
    url: '/boss/icf/apply/invalid',
    method: 'post',
    data: parameter
  })
}
export function revoke (parameter) {
  return request({
    url: '/boss/icf/apply/revoke',
    method: 'post',
    data: parameter
  })
}
export function processRecord (parameter) {
  return request({
    url: '/boss/icf/processRecord',
    method: 'post',
    data: parameter
  })
}

export function signRecord (parameter) {
  return request({
    url: '/boss/icf/signRecord',
    method: 'post',
    data: parameter
  })
}

export function icfReport (parameter) {
  return request({
    url: '/boss/icf/icfReport',
    method: 'get',
    params: parameter
  })
}

export function icfReportDownload (parameter) {
  return request({
    url: '/boss/icf/icfReportDownload',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}

export function icfInfo (parameter) {
  return request({
    url: '/boss/icf/get',
    method: 'get',
    params: parameter
  })
}

export function applyOperationRecord (parameter) {
  return request({
    url: '/boss/icf/applyOperationRecord',
    method: 'get',
    params: parameter
  })
}

export function videoRecord (parameter) {
  return request({
    url: '/boss/icf/videoRecord',
    method: 'get',
    params: parameter
  })
}

export function listPtsByResId (parameter) {
  return request({
    url: '/boss/project/manage/listPtsByResId',
    method: 'get',
    params: parameter
  })
}

export function addApplyCheck (parameter) {
  return request({
    url: '/boss/icf/addApplyCheck',
    method: 'post',
    data: parameter
  })
}

export function signUrl (parameter) {
  return request({
    url: '/boss/icf/signUrl',
    method: 'get',
    params: parameter
  })
}

export function noReplyChatRecord (parameter) {
  return request({
    url: '/boss/project/icf/chat/noReplyChatRecord',
    method: 'get',
    params: parameter
  })
}


export function icfDownload (parameter) {
  return request({
    url: '/boss/icf/icfDownload',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}

export function icfTemplateAdd (parameter) {
  return request({
    url: '/boss/project/icfTemplate/add',
    method: 'post',
    data: parameter
  })
}

export function icfTemplateUpdate (parameter) {
  return request({
    url: '/boss/project/icfTemplate/update',
    method: 'post',
    data: parameter
  })
}

export function icfTemplateList (parameter) {
  return request({
    url: '/boss/project/icfTemplateDetail/list',
    method: 'get',
    params: parameter
  })
}

export function icfTemplateSave (parameter) {
  return request({
    url: '/boss/project/icfTemplateDetail/save',
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

export function icfTemplateQuestionnaireList (parameter) {
  return request({
    url: '/boss/project/icfTemplateQuestionnaire/list',
    method: 'post',
    data: parameter
  })
}

export function icfTemplateQuestionnaireAdd (parameter) {
  return request({
    url: '/boss/project/icfTemplateQuestionnaire/add',
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

export function docTemplateEditUrl (parameter) {
  return request({
    url: '/boss/project/icfTemplate/docTemplateEditUrl',
    method: 'get',
    params: parameter
  })
}

export function questionnaireFillSms (parameter) {
  return request({
    url: '/boss/icf/questionnaireFillSms',
    method: 'post',
    data: parameter
  })
}

